projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acafa9c
)
(display_text_line): When handling HPOS < 0 after loop,
author
Richard M. Stallman
<rms@gnu.org>
Mon, 30 Nov 1998 06:35:33 +0000
(06:35 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 30 Nov 1998 06:35:33 +0000
(06:35 +0000)
if compute_motion fails to advance at all, don't back it up.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index a5a86071f1a4df772764f4714edc54020784b827..977944e5918deb1d2f827c58825e3a17a69ee9b9 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-3371,8
+3371,9
@@
display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done)
compute_motion may have moved us past the screen position we
requested, if we hit a multi-column character, or the end of
the line. If so, back up. */
- if (left_edge->vpos > vpos
- || left_edge->hpos > 0)
+ if ((left_edge->vpos > vpos
+ || left_edge->hpos > 0)
+ && left_edge->bufpos > pos)
{
pos = left_edge->bufpos;
pos_byte = left_edge->bytepos;